package com.sce.core.mongodb.model.repository.primary;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by hylc on 2018/6/18.
 */
@Document(collection = "first_mongo")
public class PrimaryMongoObject {

    @Id
    private String id;

    private String value;

    @Override
    public String toString() {
        return "PrimaryMongoObject{" + "id='" + id + '\'' + ", value='" + value + '\''
                + '}';
    }

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public PrimaryMongoObject(String id, String value) {
		super();
		this.id = id;
		this.value = value;
	}

	public PrimaryMongoObject() {
		super();
		// TODO Auto-generated constructor stub
	}
    
    
}
